﻿{extend name="index/base" /}
{block name="main"}
<div id="divMain">
	{volist name="art" id="vo"}
	<div class="post multi-post cate2 auth1">
		<h4 class="post-date">{$vo.time|date="Y年m月d日",###}</h4>
		<h2 class="post-title"><a href="{:url('article/index',array('id'=>$vo.artid))}">{$vo.arttitle}</a></h2>
		<div class="post-body">
			<p style="text-indent: 0em;">
				{if condition="$vo.pic neq ''"}
				<a href="{:url('article/index',array('id'=>$vo.artid))}" target="_blank">
					<img src="__PUBLIC__{$vo.pic}" title="" alt=""/>
				</a>
				{else/}
				{$vo.desc}
				{/if}
			</p>
		</div>
		<h5 class="post-tags">Tags:
			<span class="tags">
				{php}$ts = explode(',',$vo['tag']);{/php}
				{volist name="$ts" id="t"}
				<a href="{:url('cata/tags',array('tag'=>$t))}">{$t}</a>&nbsp;&nbsp;
				{/volist}
			</span>
		</h5>
		<h6 class="post-footer">
			发布:{$vo.author} | 分类:{$vo.cataname} | 评论:{$vo.commentid} | 浏览:<span id="spn80">{$vo.click}</span>
			| <a href="{:url('article/index',array('id'=>$vo.artid))}">阅读全文 > </a>
		</h6>
	</div>
	{/volist}
	<div class="post pagebar">
		{$art->render()}</div>
</div>
{/block}
{block name="right"}
<!--右侧导航栏-->
<div id="divSidebar">
	<dl class="function" id="divSearchPanel">
		<dt class="function_t">搜索</dt>
		<dd class="function_c">
			<div><div style="padding:0.5em 0 0.5em 1em;"><form method="post" action="{:url('search/search')}"><input type="text" name="edtSearch" id="edtSearch" size="12" /> <input type="submit" value="提交" name="btnPost" id="btnPost" /></form></div></div>
		</dd>
	</dl><dl class="function" id="divTags">
	<dt class="function_t">按标签浏览</dt>
	<dd class="function_c">
		<ul>
			{volist name="tags" id="vo"}
			<li class="tag-name tag-name-size-2"><a href="{:url('cata/tags',array('tag'=>$vo.tid))}">{$vo.tname}<span class="tag-count"> (19)</span></a></li>
			{/volist}
		</ul>
	</dd>
</dl>

</div>
{/block}
{block name="js"}
<style type="text/css">
	ul.pagination li {
		float: left;
		padding: 5px;
		margin: 0 2px;
		border: 1px solid #ccc;
	}
</style>
{/block}